

    const {courseType} = require('../model/index')

    module.exports = {

        showCourseType: async () => {
            try {
                let courseT = await courseType.findAll()
                let ct = []
                for(let i=0;i<courseT.length;i++) {
                    ct.push(courseT[i].dataValues)
                }
                return ct
            } catch(error) {
                console.log("查找用户错误：" + error)
                return false
            }
        }

    }